package cn.wolfcode.feign;

import cn.wolfcode.domain.Product;
import cn.wolfcode.feign.fallback.ProductFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "product-service",fallback = ProductFeignFallBack.class)
public interface IProductFeignService {

    @GetMapping("/product/{pid}")
    Product get(@PathVariable("pid") Long pid);
}
